package com.wei.czz.framework.common.dao;

import com.wei.czz.common.dto.common.sms.SmsTemplateFlowStatDto;
import com.wei.czz.framework.common.entity.SmsLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2024-06-17 21:41:13
 * className: SmsLogDao
 * version: 1.0
 * description:
 */
public interface SmsLogDao extends BaseMapper<SmsLogEntity> {

    /**
     * 查询短信模板流水统计数据
     * @param type         短信类型
     * @param channel      短信渠道
     * @param deleteStatus 删除状态
     * @return 短信模板流水统计对象列表
     */
    List<SmsTemplateFlowStatDto> selectStat(@Param("type") Integer type, @Param("channel") Integer channel,
                                            @Param("deleteStatus") Integer deleteStatus);
}
